package com.pojoin.cms.face;

import com.pojoin.cms.exception.CmsException;

public class UserFaceFactory extends BaseFaceFactory {
	
	/**
	 * 根据用户id获取userFace
	 * @param userId
	 * @return
	 * @throws CmsException 
	 */
	public UserFace getUserFaceByUserId(Long userId) throws CmsException{
		UserFaceLocal ufl = new UserFaceLocal();
		ufl.setUserDao(this.getDaoServer().getUserDao());
		ufl.setUserId(userId);
		ufl.reload();
		return ufl;
	}
}
